<?php

$servername = "localhost"; //域名
$username = "root"; //账户名
$password = "root"; //密码
$dbname = "cloud_signin"; //数据库名
// 创建连接
//实例化 mysqli 对象，连接 mysql 数据库
$mysqli = new mysqli($servername, $username, $password, $dbname);
if ($mysqli->connect_errno) {
    die($mysqli->connect_error);
}
$mysqli->set_charset('utf8');

//启用session
session_start();
